Socket
Socket
Sign inDemoInstall

@changesets/get-release-plan

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/get-release-plan

Reads changesets and adds information on dependents that need bumping


Version published
Weekly downloads
761K
decreased by-3%
Maintainers
3
Created
Weekly downloads
 

Package description

What is @changesets/get-release-plan?

@changesets/get-release-plan is a utility package that helps you generate a release plan for your project. It is part of the Changesets ecosystem, which is designed to manage versioning and changelogs for multi-package repositories. This package specifically focuses on reading changeset files and generating a release plan based on the changes described in those files.

What are @changesets/get-release-plan's main functionalities?

Generate Release Plan

This feature allows you to generate a release plan by reading changeset files in the current working directory. The `getReleasePlan` function returns an object that includes information about the releases that need to be made, including the packages to be released and their new versions.

const { getReleasePlan } = require('@changesets/get-release-plan');

async function generateReleasePlan() {
  const cwd = process.cwd();
  const releasePlan = await getReleasePlan(cwd);
  console.log(releasePlan);
}

generateReleasePlan();

Custom Directory

This feature allows you to specify a custom directory from which to read changeset files. This is useful if your changeset files are not located in the current working directory.

const { getReleasePlan } = require('@changesets/get-release-plan');

async function generateReleasePlan(customDir) {
  const releasePlan = await getReleasePlan(customDir);
  console.log(releasePlan);
}

generateReleasePlan('/path/to/your/project');

Other packages similar to @changesets/get-release-plan

Readme

Source

@changesets/get-release-plan

View changelog

A function that reads information about the current repository

import getReleasePlan from "@changesets/get-release-plan";

const releasePLan = await getReleasePlan(cwd, sinceMaster, passedConfig);

cwd: string

The directory to run getReleasePlan in - most often process.cwd()

sinceMaster: boolean (default false)

Sets whether to use all changests present, or only those changesets that are new since the branch diverged from master.

passedConfig?: Config

The changeset config options as defined in @changesets/types. This is optional, and can be used to overrwrite any written config options.

FAQs

Package last updated on 11 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc